<?php

namespace app\controller;

use app\BaseController;
use think\Request;

class Home extends BaseController
{

    protected $request;

    //注入
    public function _construc(Request $request)
    {
        $this->request = $request;
    }

    public function index()
    {
        return 'hello,' . $this->request->action();
    }

    public function page()
    {
        return 'page,' . $this->request->action();
    }
}
